---
id: export-entire-dataset
title: Export entire dataset to one file
---

import CodeBlock from '@theme/CodeBlock';
import ApiLink from '@site/src/components/ApiLink';
import CrawlSource from '!!raw-loader!./export_entire_dataset.ts';

This `Dataset` example uses the `exportToValue` function to export the entire default dataset to a single CSV file into a key-value store named "my-data".

<CodeBlock className="language-js">
	{CrawlSource}
</CodeBlock>